/**
 * 
 */
package com.wegax.naming;

import com.wegax.naming.register.NameRegister;

/**
 * @author wegax
 * 
 */
class NamingServiceImpl implements NamingService {

	private final NameRegister nameRegister;

	public NamingServiceImpl(NameRegister nameRegister) {
		this.nameRegister = nameRegister;
	}

	@Override
	public String whatsYourName() {
		return nameRegister.getName();
	}

}
